package com.kky.pp.base.manager;

import com.kky.pp.callback.RegisterForActivityResultCall;

import java.util.HashMap;

public class ActivityForResultManager {
    public static HashMap manager = new HashMap<String, Object>();

    public static void registerActivity(String key, Object value) {
        manager.put(key, value);
    }

    public static void unRegisterActivity(String key) {
        manager.remove(key);
    }
    public static RegisterForActivityResultCall getActivityResultCall(String key) {
        RegisterForActivityResultCall registerForActivityResultCall = (RegisterForActivityResultCall) manager.get(key);
        return registerForActivityResultCall;
    }

    public void setManager(Class<?> cls) {
    }
}
